

#include "kvfs.h"
#include <iostream>
#include "../hedmodel.h"
#include "../entity/solid.h"
#include "../entity/face.h"
#include "../entity/loop.h"
#include "../entity/vertex.h"
#include "../entity/halfedge.h"
#include "../entity/ipoint.h"


KVFS::KVFS(HEDModel& _model, int _s )
: m_solid( NULL )
, m_s( _s )
{
  m_solid = _model.getSolid( _s );
}




void
KVFS::execute()
{
  std::cout << "\nKVFS::execute() \n";

  Face* f =  m_solid->getFace();
  Vertex* v = m_solid->getVertex();
  Loop* l = f->getFloops();
  HalfEdge* h = v->getVEdge();
  delete v;
  delete l;
  delete f;
  delete h;
  //delete m_solid;
  //m_solid = NULL;
}


void
KVFS::unExecute()
{
  std::cout << "\nKVFS::unExecute() NOT IMPLEMENTED!\n";
}


